﻿namespace LeRenard.ScriptWars.Model.GridSystem
{
    /// <summary>
    /// Represents a position on the grid.
    /// </summary>
    public class GridPosition
    {
        /// <summary>
        /// Gets the width.
        /// </summary>
        public int X { get { return _x; } }
        private readonly int _x;

        /// <summary>
        /// Gets the height.
        /// </summary>
        public int Y { get { return _y; } }
        private readonly int _y;

        /// <summary>
        /// Creates a new <see cref="GridSize"/> object.
        /// </summary>
        /// <param name="x">The width.</param>
        /// <param name="y">The height.</param>
        public GridPosition(int x, int y)
        {
            _x = x;
            _y = y;
        }
    }
}
